<template>
  <div class="flex-col page_t">
    <c-title text="我的团队"></c-title>
    <div class="flex-col page_t">
      <div class="flex-col">
        <div class="flex-col justify-start group_2_t">
          <!-- <navbar title="我的团队" background="#FFB24B"></navbar> -->
          <div class="flex-col items-center">
            <div class="flex-col section_2_t">
               <div class="flex-row group_top_t">
                <div class="flex-col justify-between group_3_t" style="margin-bottom: 20px;">
                  <span class="font_t">我的业绩</span>
                  <span class="font_2_t mt-9">{{ myYeji }}</span>
                </div>
              </div>
              <!-- <img class="image_2 pos" src="https://shops.cg500.com/static/fuxin/fuxin-team-icon.png" /> -->
              <div class="flex-row group_top_t">
                <div class="flex-col justify-between group_3_t">
                  <span class="font_t">团队业绩</span>
                  <span class="font_2_t mt-9">{{ teamYeji }}</span>
                </div>
                <div class="flex-col group_4_t">
                  <span class="font_t">团队人数</span>
                  <span class="font_2_t mt-9">{{ teamNum }}</span>
                </div>
              </div>
              <div class="flex-col justify-start section_3_t">
                <div class="flex-row equal-division_t">
                  <div class="flex-col items-center equal-division-item_t">
                    <span class="font_t">大区业绩</span>
                    <span class="font_3_t mt-9">{{ aYeji }}</span>
                  </div>
                  <div class="horiz-divider_t section_4_t"></div>
                  <div class="flex-col items-center group_5_t equal-division-item_t">
                    <span class="font_t">小区业绩</span>
                    <span class="font_3_t mt-9">{{ bYeji }}</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="flex-col group_6_t mt-25-5">
        <div class="flex-row items-center justify-center group_7_t">
          <span @click="changeTab(index)" class="tabs-item_t" :class="current == index ? 'tabs-active_t' : ''" v-for="(item, index) in tabs" :key="index"
            >{{ item }}({{ index == 0 ? teamNumA : teamNumB }})</span>
          <!-- <span class="text_4 ml-81-5">B区</span> -->
        </div>
        <!-- <div class="self-start section_5"></div> -->
        <div class="flex-col self-stretch section_6_t">
          <div class="flex-row justify-between items-center group_8_t">
            <span class="text_6_t">{{ current == 0 ? "大" : "小" }}区成员</span>
            <!-- <span class="text_5">{{current == 0 ? 'A' : 'B'}}区人数：{{list.length}}</span> -->
          </div>
          <div class="flex-col" v-if="list.length > 0">
            <div class="flex-row justify-between items-center list-item_t" v-for="(item,index) in list" :key="index">
              <div class="flex-row items-center list-item-lf_t">
                <img class="image_3_t" :src="item.avatar" />
                <div class="ml-8 flex-col items-start list-item-lf-nk_t">
                  <div class="font_4_t">{{ item.nickname }}</div>
                  <span class="font_6_t mt-9">{{ item.time }}</span>
                </div>
              </div>
              <div class="flex-col list-item-rg_t items-start">
                <!-- <span class="font_5_t">节点人：{{ item.jiedian ? item.jiedian : "暂无" }}</span> -->
                <span class="font_5_t mt-7-5">推广人：{{ item.t_user ? item.t_user.nickname : "暂无" }}</span>
              </div>
            </div>
          </div>
          <van-empty description="什么也没有" v-else></van-empty>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import myTeamController from "./myTeamController.js";
export default myTeamController;
</script>
<!-- <style>
@import "../common/common.css";
</style> -->
<style lang="scss" scoped>
@import url("../../../assets/css/commoncss/common.css");
.ml-35 {
  margin-left: 35px;
}
.mt-25-5 {
  margin-top: 25.5px;
}
.ml-81-5 {
  margin-left: 81.5px;
}
.mt-9 {
  margin-top: 9px;
}
.mt-7-5 {
  margin-top: 7.5px;
}
.page_t {
  padding-bottom: 29px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}
.section_2_t {
  padding: 21.5px 11px 13.5px;
  width: 345px;
  /* background-color: #ffffff; */
  background-color: #ff954b;
  border-radius: 10px;
  margin-top: 20px;
}
.group_3_t {
  padding: 0 5px;
  flex: 1;
}
.font_t {
  font-size: 13px;
  font-family: PingFang SC;
  line-height: 25rpx;
  /* color: #60646d; */
  color: #fff;
}
.group_4_t {
  /* margin-top: 23rpx; */
  padding: 0 2px;
  flex: 1;
}
.group_top_t {
  width: 100%;
}
.font_2_t {
  font-size: 27px;
  font-family: DIN;
  line-height: 25px;
  font-weight: 500;
  color: #fff;
}
.section_3_t {
  margin-right: 2px;
  margin-top: 15.5rpx;
  padding: 6.5px 0 9px;
  
  border-radius: 8rpx;
  //border-bottom: solid 0.5px #f7f5f4;
}
.equal-division_t {
  padding: 0 6px;
  width: 100%;
}
.group_5_t {
  // flex: 1 1 153px;
}
.equal-division-item_t {
  padding: 5px 17px;
  flex: 1;
}
.font_3_t {
  font-size: 22px;
  font-family: DIN;
  line-height: 16px;
  font-weight: 500;
  color: #fff;
  /* color: #111111; */
}
.horiz-divider_t {
  margin: 5px 0 10px;
}
.section_4_t {
  background-color: #dddddd;
  width: 0.5px;
  height: 34px;
}
.image_2_t {
  filter: drop-shadow(0.43px 4.98px 10.68px #ff944a52);
  width: 104px;
  height: 75px;
}
.pos {
  position: absolute;
  right: -15px;
  top: -16px;
}
.group_6_t {
  padding-left: 16px;
  padding-right: 14px;
}
.group_7_t {
  padding-bottom: 11px;
}
.text_3_t {
  margin-left: 108px;
  color: #000000;
  font-size: 17px;
  font-family: PingFang SC;
  font-weight: 500;
  line-height: 15px;
}
.text_4_t {
  color: #666666;
  font-size: 14px;
  font-family: PingFang SC;
  line-height: 12px;
}
.section_5_t {
  margin-left: 162px;
  background-color: #ffb24b;
  border-radius: 1px;
  width: 16px;
  height: 2px;
}
.section_6_t {
  margin-top: 6px;
  padding: 0 12px 31px 15px;
  background-color: #ffffff;
  border-radius: 8px;
}
.group_8_t {
  padding: 18px 0;
  border-bottom: solid 0.5px #f2f7ff;
}
.text_6_t {
  color: #111111;
  font-size: 16px;
  font-family: PingFang SC;
  line-height: 15px;
}
.text_5_t {
  margin-right: 6px;
  color: #111111;
  font-size: 15px;
  font-family: PingFang SC;
  font-weight: 500;
  line-height: 14px;
}
.list-item_t {
  padding: 9px 0 10px 2px;
  border-bottom: solid 1px #f2f7ff;
  width: 100%;
}
.list-item-lf_t {
  display: flex;
  flex: 1;
}
.list-item-rg_t {
  display: flex;
}
.image_3_t {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.font_4_t {
  font-size: 13px;
  font-family: PingFang SC;
  /* line-height: 25rpx; */
  font-weight: 500;
  color: #111111;
  width: 100%;
  word-break: break-all;
  text-align: left;
}
.list-item-lf-nk_t {
  width: calc(100% - 53px);
}
.font_6_t {
  font-size: 12px;
  font-family: PingFang SC;
  line-height: 10px;
  color: #666666;
}
.font_5_t {
  font-size: 12px;
  font-family: PingFang SC;
  line-height: 12px;
  color: #666666;
}

.tabs-item_t {
  color: #666666;
  font-size: 14px;
  font-family: PingFang SC;
  line-height: 12px;
}
.tabs-item_t:first-child {
  margin-right: 131px;
}
.tabs-active_t {
  position: relative;
  // color: #000000;
  color: red;
  font-size: 17px;
  font-family: PingFang SC;
  font-weight: 500;
  line-height: 15px;
}
.tabs-active_t::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: -10px;
  transform: translate(-50%,-50%);
  background-color: #ffb24b;
  border-radius: 1px;
  width: 16px;
  height: 2px;
}
</style>
